package com.ysd.Servlet;

import java.io.IOException;
import java.util.ArrayList;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ysd.dao.impl.ChuangShiRenDaoimpl;
import com.ysd.entity.ChuangShiRen;

/**
 * Servlet implementation class AboutServlet
 */
public class AboutServlet extends HttpServlet {
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
		ChuangShiRenDaoimpl csrd=new ChuangShiRenDaoimpl();//获得创始人的实现类
		ArrayList<ChuangShiRen> csr=csrd.getChuagShiRen();//通过创始人的实现类获得数据
		request.setAttribute("csr", csr);//吧创始人的数据存到下个页面
		
		request.getRequestDispatcher("about.jsp").forward(request, response);
		
	}
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		doGet(request, response);
	}

}
